package com.ytjj.qmyx.admin;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 后台管理系统
 *
 *
 */
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@EnableCaching
@EnableAsync
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class,scanBasePackages={"com.ytjj.qmyx.admin","com.ytjj.common.configuration","com.ytjj.common.utils.feishu"})
@EnableFeignClients(basePackages = "com.ytjj.qmyx.*.client")
@MapperScan(basePackages = {"com.ytjj.qmyx.*.mapper","com.ytjj.qmyx.*.dao", "com.ytjj.qmyx.admin.mapper.db2"})//, "com.ytjj.qmyx.admin.mapper.db2"
public class QmyxAdminApplication {
    public static final String MAX_AGE = "36000";

    public static void main(String[] args) {
        SpringApplication.run(QmyxAdminApplication.class, args);
    }

}